/******** 二维码登录账号登录切换 ********/
var top_2 = document.getElementsByClassName("top_2")[0];
//获取a标签的父级p
var noet_denlu = top_2.getElementsByClassName("noet_denlu")[0];
var noet_zhanghu = top_2.getElementsByClassName("noet_zhanghu")[0];

//获取账号登录
var top_3 = document.getElementsByClassName("top_3")[0]

//获取扫码登录
var top_3_1 = document.getElementsByClassName("top_3_1")[0]

//扫码登录点击事件
noet_denlu.addEventListener("click", function () {
    this.getElementsByTagName("a")[0].style.color = "#e4393c";
    noet_zhanghu.getElementsByTagName("a")[0].style.color = "#666";
    top_3_1.style.display="block";
    top_3.style.display="none";
})

//账号登录点击事件
noet_zhanghu.addEventListener("click", function () {
    this.getElementsByTagName("a")[0].style.color = "#e4393c";
    noet_denlu.getElementsByTagName("a")[0].style.color = "#666";
    top_3_1.style.display="none";
    top_3.style.display="block";
})


